package com.baizhi.service;

import com.baizhi.entity.Emp;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface EmpService {

    //1.查询所有员工
    List<Emp> findAll();

    //2.添加员工
    void save(Emp emp);

    //3.删除员工
    void delete(String id);

    //4.根据id查询员工
    Emp findById(String id);

    //5.修改员工信息
    void update(Emp emp);
}
